import {get, post, put, del} from '@/utils/requestMethods'

// interface HomeParams {
//   id?: number
//   name?: string
//   [key: string]: unknown // 允许其他属性
// }

// export function getHome(params?: HomeParams) {
//   return get('/api/home', { params })
// }
export const getHome1 = (params) => get('/api/home', params) 

// export function updateHome(data: unknown) {
//   return put('/api/home', data)
// }
export const updateHome1 = (data: unknown) => put('/api/home', data)

// export function addHome(data: unknown) {
//   return post('/api/home', data)
// }
export const addHome1 = (data: unknown) => post('/api/home', data)
// export function deleteHome(id: string) {
//   return del(`/api/home/${id}`)
// }
export const deleteHome1 = (id: string) => del(`/api/home/${id}`)
